
#import <StoreKit/StoreKit.h>

#define kInAppPurchaseManagerProductsFetchedNotification @"kInAppPurchaseManagerProductsFetchedNotification"

#define kInAppPurchaseManagerTransactionFailedNotification @"kInAppPurchaseManagerTransactionFailedNotification"
#define kInAppPurchaseManagerTransactionSucceededNotification @"kInAppPurchaseManagerTransactionSucceededNotification"

#define PRODUCT_COINS1_ID	@"Coins01"
#define PRODUCT_COINS2_ID	@"Coins02"
#define PRODUCT_COINS3_ID	@"Coins03"
#define PRODUCT_COINS4_ID	@"Coins04"
#define PRODUCT_COINS5_ID	@"Coins05"
#define PRODUCT_BABY1_ID	@"ExtraBaby01"
#define PRODUCT_BABY2_ID	@"ExtraBaby02"
#define PRODUCT_BABY3_ID	@"ExtraBaby03"

#define NUM_PRODUCTS	8

@interface InAppPurchaseManager : NSObject <SKProductsRequestDelegate, SKPaymentTransactionObserver>
//@interface InAppPurchaseManager : NSObject <SKProductsRequestDelegate>
{
    SKProduct *product[NUM_PRODUCTS];
    SKProductsRequest *productsRequest;
}

- (void) requestProductsData;

- (void) loadStore;
- (BOOL) canMakePurchases;
- (void) purchase:(NSString*)productId;

@end